#!/bin/sh

value=5

if test "$2" != ""; then
  value=$2
fi

case $1 in
  "increase")
    brillo -A $value
    ;;
  "decrease")
    brillo -U $value
    ;;
  *)
    ;;
esac

bright=`brillo`

notify-send -u "low" "Brightness: $bright"
